
<%--
  Created by IntelliJ IDEA.
  User: 浮生
  Date: 2021/6/9
  Time: 20:38
  To change this template use File | Settings | File Templates.
--%>  
<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<H1>登录成功</H1>
<form action="${pageContext.request.contextPath }/QueryLian">
    姓名：<input name="name" size="10" value="${name}">

    <input type="submit" value="据名字查">
</form>


<form action="${pageContext.request.contextPath }/QueryLianBirthday">
    生日：<input name="name" size="10" value="${birthday}">
    <input type="submit" value="据日期查">
</form>





<table border="2">
    <tr>
        <td>id</td>
        <td>姓名</td>
        <td>性别</td>
        <td>生日</td>
        <td>图片</td>
        <td>操作</td>
    </tr>
    <c:forEach items="${list}" var="list">

        <tr>

        <td>${list.id}</td>
        <td>${list.name}</td>
        <td>${list.gender}</td>
        <td style="color:#fa8072"><fmt:formatDate value="${list.birthday}" pattern="yyyy-MM-dd"/></td>

            <td><img src="/photo/${list.tupian}" width=200 height=200/></td>
        <td>
            <a href="${pageContext.request.contextPath }/findById/${list.id}">修改</a>
        </td>


        </tr>

    </c:forEach>


</table>





</body>
</html>
